package cn.tedu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author Justin Parker
 * @Date 2024/8/3 0003 9:22
 * @Version 1.0
 */
public class TestLife {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.life");
        Life life = context.getBean(Life.class);
        System.out.println("4.使用阶段");

        context.close();
//        System.out.println(life);
    }
}
